package com.tyk.bookstore.back.payment.model.query;

import com.tyk.bookstore.back.common.core.model.page.PageQuery;
import com.tyk.bookstore.back.common.core.model.type.PaymentWay;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 支付记录
 */
@Data
@Schema(name = "PaymentRecordPageQuery", description = "支付记录")
public class PaymentRecordPageQuery extends PageQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "支付流水号")
    private String tradeNo;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "支付金额：起始")
    private BigDecimal amountFrom;

    @Schema(description = "支付金额：终止")
    private BigDecimal amountTo;

    @Schema(description = "会员昵称或账号")
    private String memberKeyword;

    @Schema(description = "第三方流水号")
    private String outTradeNo;

    @Schema(description = "支付方式")
    private PaymentWay paymentWay;

    @Schema(description = "支付时间：起始")
    private LocalDateTime paymentTimeFrom;

    @Schema(description = "支付时间：终止")
    private LocalDateTime paymentTimeTo;

}
